using System;
using System.Collections.Generic;
using Domain.Core;
using Domain.Model.Partners;
using Domain.Model.PhoneNumbers;
using Domain.Model.Addresses;

namespace Domain.Model.Partners
{
    public class ContactPerson : ValueObject
    {
        public ContactPerson()
        {
            Addresses = new HashSet<Address>();
            PhoneNumbers = new HashSet<PhoneNumber>();
        }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string MiddleName { get; set; }
        public string Title { get; set; }
        public Gender Gender { get; set; }
        public string Email { get; set; }
        public string HomePage { get; set; }

        public virtual ICollection<Address> Addresses { get; set; }
        public virtual ICollection<PhoneNumber> PhoneNumbers { get; set; }

        public string FullName
        {
            get { return String.Format("{0} {1} {2}", LastName, FirstName, MiddleName); }
        }
    }
}